package com.education.online.controller;


import com.education.common.utils.ApiReturnObject;
import com.education.online.pojo.OUserTestpaper;
import com.education.online.service.OUserTestpaperService;
import java.util.Date;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;




/**
 * 我的测试
 *
 * @date : 2020-06-15 16:43:46
 */
@Api(tags = {"PC-我的测试"})
@RestController
@RequestMapping("/online/ousertestpaper")
public class OUserTestpaperController {

    @Autowired
    private OUserTestpaperService oUserTestpaperService;

    @ApiOperation(value = "添加到我的测试", httpMethod = "GET")
    @GetMapping("/insertUserPaper")
    public ApiReturnObject insertUserPaper(OUserTestpaper oUserTestpaper){
        oUserTestpaper.setCreatetime(new Date());
        oUserTestpaperService.insertOUserTestpaper(oUserTestpaper);
        return new ApiReturnObject("200","success","");
    }

}